<?php

class Config
{
	private static $_instance;
	
	/** @var ConfigServer[] */
	public $servers = array();
	
	private function __construct() {}
	
	public static function instance()
	{
		if(!self::$_instance) self::$_instance = new Config();
		return self::$_instance;
	}
	
	public static function autoload($class)
	{
		$dir = \dirname(__FILE__);
		$file = "$dir/$class.class.php";
		if(\file_exists($file)) require_once $file;
	}
}

\spl_autoload_register(array("Config", "autoload"));
function H($stringToEscape) { return \htmlspecialchars($stringToEscape); }